package coms;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;

public class ConnectingClient extends Connecting {

	
	public ConnectingClient(InetAddress anInetAddress, int port) {
		/**
		 * The constructor takes in an InetAddres and a port, and connects
		 * to the socket on the other end.
		 */
		try{
			mySocket = new Socket(anInetAddress, port);
			this.SetUpPrintWriterAndBufferedReader();
		}
		catch (IOException e) {
			System.out.println("Couldn't make client");
		}
		
		
		
	}	
	

}
